//
//  ContactKepboardCollectionViewCell.m
//  CollectionTestDemo1.0
//
//  Created by Lisa on 16/7/27.
//  Copyright © 2016年 潘丽莎. All rights reserved.
//

#import "ContactKepboardCollectionViewCell.h"

@interface ContactKepboardCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIButton *imageButton;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation ContactKepboardCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}


+ (UINib *)nibForContactKepboardCollectionViewCell
{
    return [UINib nibWithNibName:@"ContactKepboardCollectionViewCell" bundle:[NSBundle mainBundle]];
}


- (void)updateContactKepboardCollectionViewCellDic:(NSDictionary *)dic
{
    [self.imageButton setBackgroundImage:[UIImage imageNamed:dic[@"imageName"]]
                                forState:UIControlStateNormal];
    self.nameLabel.text = dic[@"name"];
}
@end
